import request from '@/utils/request'

// 查询报修审核列表
export function listRepairAudit(query) {
  return request({
    url: '/assets/repairAudit/list',
    method: 'get',
    params: query
  })
}

// 查询报修审核详细
export function getRepairAudit(repairApplicationId) {
  return request({
    url: '/assets/repairAudit/' + repairApplicationId,
    method: 'get'
  })
}

// 新增报修审核
export function addRepairAudit(data) {
  return request({
    url: '/assets/repairAudit',
    method: 'post',
    data: data
  })
}

// 修改报修审核
export function updateRepairAudit(data) {
  return request({
    url: '/assets/repairAudit',
    method: 'put',
    data: data
  })
}

// 删除报修审核
export function delRepairAudit(repairApplicationId) {
  return request({
    url: '/assets/repairAudit/' + repairApplicationId,
    method: 'delete'
  })
}
